package cn.jtfadmin.base.dict.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * 字典模型
 *
 * @author jtf
 * @since 0.0.1
 */
@Data
public class DictModelDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    public DictModelDTO() {
    }

    public DictModelDTO(String name, String describe) {
        this.name = name;
        this.describe = describe;
    }

    public DictModelDTO(String name, String describe, List<DictItemModelDTO> itemModelDTOList) {
        this.name = name;
        this.describe = describe;
        this.itemModelDTOList = itemModelDTOList;
    }

    /**
     * 字典value
     */
    private String name;
    /**
     * 字典描述
     */
    private String describe;

    /**
     * 字典项目
     */
    private List<DictItemModelDTO> itemModelDTOList;


}
